package com.ruoyi.project.digital.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import java.util.Date;

/**
 * 体力消耗和获取值对象 t_stamina_user
 *
 * @author ruoyi
 * @date 2023-10-30
 */
@TableName("t_stamina_user")
public class StaminaUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 获取途径名称 */
    @Excel(name = "获取途径名称")
    private String title;

    /** 获取时间 */
    @Excel(name = "获取时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date times;

    /** 获取值或者消耗值 */
    @Excel(name = "获取值或者消耗值")
    private Long getValue;

    /** 0代表获取，1代表消耗 */
    @Excel(name = "0代表获取，1代表消耗")
    private String type;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    @TableField(exist = false)
    private String userName;

    /** 主键 */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setTimes(Date times)
    {
        this.times = times;
    }

    public Date getTimes()
    {
        return times;
    }
    public void setGetValue(Long getValue)
    {
        this.getValue = getValue;
    }

    public Long getGetValue()
    {
        return getValue;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("title", getTitle())
            .append("times", getTimes())
            .append("getValue", getGetValue())
            .append("type", getType())
            .append("userId", getUserId())
            .append("id", getId())
            .toString();
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
}
